package vn.cent.game.cardtype.beans;

import com.smartfoxserver.v2.entities.User;
import com.smartfoxserver.v2.extensions.SFSExtension;

import vn.cent.game.cardtype.main.CardTypeGameExtension;
import vn.cent.game.cardtype.utils.GameKind;
import vn.cent.game.cardtype.utils.PlayerState;


public class IUser{

	protected int ID;
	protected int roomID;
	protected boolean isReadyToPlay;
	protected GameKind kindOfGame;
	protected User player;
	
	protected int accountBalance;
	
	protected PlayerState currentState = PlayerState.None;
	
	public IUser()
	{
		
	}
	
	public PlayerState getCurrentState() {
		return currentState;
	}

	public void setCurrentState(PlayerState currentState) {
		this.currentState = currentState;
	}

	public IUser(int ID, int roomID, boolean isReady, GameKind game)
	{
		this.ID = ID;
		this.roomID = roomID;
		this.isReadyToPlay = isReady;
		this.kindOfGame = game;
	}

	public User getPlayer() {
		return player;
	}

	public void setPlayer(User player) {
		this.player = player;
	}

	public int getAccountBalance() {
		return accountBalance;
	}

	public void setAccountBalance(int accountBalance) {
		this.accountBalance = accountBalance;
	}

	public int getID() {
		return ID;
	}

	public void setID(int iD) {
		ID = iD;
	}

	public int getRoomID() {
		return roomID;
	}

	public void setRoomID(int roomID) {
		this.roomID = roomID;
	}

	public boolean isReadyToPlay() {
		return isReadyToPlay;
	}

	public void setReadyToPlay(boolean isReadyToPlay) {
		this.isReadyToPlay = isReadyToPlay;
	}

	public GameKind getKindOfGame() {
		return kindOfGame;
	}

	public void setKindOfGame(GameKind kindOfGame) {
		this.kindOfGame = kindOfGame;
	}
	
	public void trace(Object... args) {
		CardTypeGameExtension.GetInstance().trace(args);
	}
}
